<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="org.firecloud.h5fun.model.javabean.*"%>
<%@page import="java.util.List"%>
<div>
	<%
		@SuppressWarnings("unchecked")
		List<ProjectBean> list = (List<ProjectBean>) request.getAttribute(request.getParameter("dataName"));
		for (int i = 0; i < list.size(); ++i) {
	%>
	<a href="ShowProject?id=<%=list.get(i).getId()%>">
		<div class="shadow-box top-cell <%=i == 0 ? "top-cell-big" : ""%>">
			<%
				if (list.get(i).isOriginal()) {
			%>
			<div class="tag-original">原创</div>
			<%
				}
					if (list.get(i).isCreateApp()) {
			%>
			<div class="tag-diy">定制</div>
			<%
				}
			%>
			<div class="cover-info">
				<div class="cover-info-title"><%=list.get(i).getTitle()%></div>
				<div class="cover-info-context"><%=list.get(i).getContext()%></div>
				<i class="icon-eye"><%=list.get(i).getClick()%></i>
				<i class="icon-bubble"><%=list.get(i).getCommentary()%></i>
			</div>
			<img class="top-cell-img"
				src="files/image/<%=list.get(i).getImageFileName()%>">
		</div>
	</a>
	<%
		}
	%>
	<div class="clear-both"></div>
</div>